<?php

  print "<form method=\"get\" 
  action=\"creepsearchresult.php\">";
  if ($_GET['query'])
	print "Search: <input type=\"text\" 
  name=\"query\" value=\"".$_GET['query']."\">";
  else
	print "Search: <input type=\"text\" 
  name=\"query\">";
  print "&nbsp;";
  print "<SELECT name=type>";
  if ($_GET['type'])
  {
	print "<OPTION>".$_GET['type']."</OPTION>";
	print "<OPTION disabled=\"true\">-----</OPTION>";	
  }
  print "<OPTION>Score</OPTION>";
  print "<OPTION>Username</OPTION>";
  print "<OPTION>Groupname</OPTION>";
  print "</SELECT> &nbsp;";
  if ($_GET['prev'])
	print "Days previous: <input type=\"text\" 
  name=\"prev\" value=\"".$_GET['prev']."\">";  
  else
	print "Days previous: <input type=\"text\" 
  name=\"prev\" value=\"0\">";
  print "<input type=\"submit\" value=\"Go\">";
  print "</form>";

?>